package top.cyuw.subjectsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.cyuw.subjectsystem.dto.PagingParamDto;
import top.cyuw.subjectsystem.dto.depart.DepartCreateRequest;
import top.cyuw.subjectsystem.dto.depart.DepartEditRequest;
import top.cyuw.subjectsystem.entity.Depart;
import top.cyuw.subjectsystem.vo.PagingVo;
import top.cyuw.subjectsystem.vo.depart.DepartVo;

import java.util.List;

public interface DepartService extends IService<Depart> {

    Boolean create(DepartCreateRequest request);

    Boolean edit(DepartEditRequest request);

    PagingVo<DepartVo> search(PagingParamDto<String> request);

    Boolean delete(Integer id);

    List<DepartVo> all();

}
